import java.util.Scanner;

public class idCard {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("Please emter your id card");
        String id = sc.next();
        String year = id.substring(6, 10);
        String month = id.substring(10, 12);
        String day = id.substring(12, 14);
        String gender;
        if (id.charAt(16) % 2 == 0) {
            gender = "女";
        } else {
            gender = "男";
        }
        System.out.println("人物信息为:");
        System.out.println("出生年月日:" + year + "年" + month + "月" + day + "日");
        System.out.println("性别为:" + gender);
    }
}
